import { SetMetadata } from '@nestjs/common';
import { AUTH_PUB_KEY } from '@/common/constant';

export const IS_PUBLIC_KEY = AUTH_PUB_KEY as string;

/**
 *  忽略权限验证
 * @returns
 */
export const Public = () => SetMetadata(IS_PUBLIC_KEY, true);
